import { Spin } from 'antd';

const Loading = () => {
  const loadingStyle: any = {
    left: '50%',
    position: 'absolute',
    top: '50%',
    transform: 'translate(-50%, -50%)',
    zIndex: 99999,
  };
  return (
    <div style={loadingStyle}>
      <Spin size="large" spinning={true} delay={200} tip="资源加载中..." />
    </div>
  );
};

export default Loading;
